import Layout from '@/layout/Layout'

const messageRouter = {
  path: '/message',
  component: Layout,
  redirect: 'noredirect',
  name: '消息管理',
  meta: {
    title: '消息管理',
    icon: 'fa-commenting-o'
  },
  children: [
    {
      path: 'messageManagement',
      component: () => import('@/views/message/MessageManagement'),
      name: 'MessageManagement',
      meta: { title: '我的消息',cache: true}
    },
    {
      path: 'serverMessageManagement',
      component: () => import('@/views/message/ServerMessageManagement'),
      name: 'ServerMessageManagement',
      meta: { title: '服务消息',cache: true}
    },
    {
      path: 'noticeManagement',
      component: () => import('@/views/message/NoticeManagement'),
      name: 'NoticeManagement',
      meta: { title: '管理员通知',cache: true}
    },
    {
      path: 'notifyTaskManagement',
      component: () => import('@/views/message/notifyTask/NotifyTaskManagement'),
      name: 'NotifyTaskManagement',
      meta: { title: '通知任务',cache: true}
    },
    {
      path: 'alarmListManagement',
      component: () => import('@/views/message/AlarmListManagement.vue'),
      name: 'AlarmListManagement',
      meta: { title: '报警记录',cache: true}
    }
  ]
}

export default messageRouter
